package com.yao.club.entity.dto;

import lombok.Getter;
import lombok.Setter;

import javax.persistence.*;
import java.time.Instant;

@Getter
@Setter
@Entity
@Table(name = "messages")
public class Message {
    @Id
    @Column(name = "message_id")
    private Long messageId;

    @Column(name = "module")
    private Integer module;

    @Column(name = "title", length = 50)
    private String title;

    @Lob
    @Column(name = "content")
    private String content;

    @Column(name = "url")
    private String url;

    @Column(name = "member_id", length = 20)
    private String memberId;

    @Column(name = "if_read")
    private Integer ifRead;

    @Lob
    @Column(name = "param")
    private String param;

    @Column(name = "create_time")
    private Instant createTime;

}